package org.willthink.service.account.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.willthink.dao.account.AccountDAO;
import org.willthink.service.account.AccountService;

public class AccountServiceImpl implements AccountService{

	private AccountDAO dao;
	
	public void setDao(AccountDAO dao) {
		this.dao = dao;
	}

	@Override
	public void insertAcc(Map<String, String> map) throws SQLException {
		
		dao.insertAcc(map);
	}

	@Override
	public List<Map<String, String>> getAccountList() throws SQLException {
		
		return dao.getAccountList();
	}

	@Override
	public void deleteAccount(String seqNo) throws SQLException {
		
		dao.deleteAccount(seqNo);
	}

	@Override
	public void updateAccount(Map<String, String> map) throws SQLException {
		
		dao.updateAccount(map);
	}

}
